﻿<%@ Page Language="C#" AutoEventWireup="true" EnableEventValidation="false" CodeFile="CargoStatus.aspx.cs" Inherits="Views_CargoStatus" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>正贸仓储物流管理系统</title>
    <link href="../CSS/css.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript">
        //        function showEdit(Lane, Line, Lcol, Lay,Hid) {
        //            if (document.getElementById('txtSLine').value == "THistory" || document.getElementById('txtSLcol').value =="") 
        //            {
        //                document.getElementById('txtSLine').value = Hid;
        //                document.getElementById('txtSLcol').value = Lcol;
        //            }
        //            else if(isNaN(document.getElementById("txtSLine").value) ==true ||isNaN(document.getElementById("txtSLcol").value) ==true)
        //            {
        //                alert('排或列要是数字！');
        //                return;
        //            }
        //            else if(document.getElementById('txtSLine').value != "" && document.getElementById('txtSLcol').value !==""&&document.getElementById('txtELine').value == "" || document.getElementById('txtELcol').value =="")
        //            {
        //                document.getElementById('txtELine').value = Hid;
        //                document.getElementById('txtELcol').value = Lcol;
        //            }
        //            else if(isNaN(document.getElementById("txtELine").value) ==true ||isNaN(document.getElementById("txtELcol").value) ==true)
        //            {
        //                alert('排或列要是数字！');
        //                return;
        //            }
        //            else
        //            {
        //                document.getElementById('txtELine').value = Hid;
        //                document.getElementById('txtELcol').value = Lcol;
        //            }
        //
        //        }

        function showEdit(Lcol, Hid) {
            if (document.getElementById('txtSLine').value == "THistory" || document.getElementById('txtSLcol').value == "") {
                document.getElementById('txtSLine').value = Hid;
                document.getElementById('txtSLcol').value = Lcol;
            }
            else if (isNaN(document.getElementById("txtSLine").value) == true || isNaN(document.getElementById("txtSLcol").value) == true) {
                alert('排或列要是数字！');
                return;
            }
            else if (document.getElementById('txtSLine').value != "" && document.getElementById('txtSLcol').value !== "" && document.getElementById('txtELine').value == "" || document.getElementById('txtELcol').value == "") {
                document.getElementById('txtELine').value = Hid;
                document.getElementById('txtELcol').value = Lcol;
            }
            else if (isNaN(document.getElementById("txtELine").value) == true || isNaN(document.getElementById("txtELcol").value) == true) {
                alert('排或列要是数字！');
                return;
            }
            else {
                document.getElementById('txtELine').value = Hid;
                document.getElementById('txtELcol').value = Lcol;
            }

        }
    </script>

    <script type="text/javascript">
        function fPOSDlg(URL, Target, form)  //
        {
            showx = event.screenX - event.offsetX - 4; // + deltaX;
            showy = event.screenY - event.offsetY + 18; // + deltaY;
            retval = window.showModalDialog(URL, "", "dialogWidth:400px; dialogHeight:350px; dialogLeft:" + showx + "px; dialogTop:" + showy + "px; status:no; directories:yes;help:no;scrollbars:no;Resizable=no; ");

            if (retval != null) {
                var CompanyName = retval.split(",");
                document.form1.txtPos_ID.value = CompanyName[1];           //货位号ID
            }
        }
    </script>

    <script type="text/javascript">
        window.onload = function () {
            var a = document.getElementById("loading");
            a.parentNode.removeChild(a);
        }
        document.write('<div id="loading" style="line-height:122px;"><table cellpadding="0" width="100%"><Tr><Td align="center" height="500" valign="middle"><img src="../Images/loading.gif"></td></tr></table></div>');
    </script>

    <script language="javascript">
        var _oldColor;
        function SetNewColor(source) {
            _oldColor = source.style.backgroundColor;
            source.style.backgroundColor = '#FFFF00';

        }
        function SetOldColor(source) {
            source.style.backgroundColor = _oldColor;
        }
    </script>

    <script language="javascript">
        var _oldColor;
        function SetNewColor1(source) {
            _oldColor = source.style.backgroundColor;
            source.style.backgroundColor = '#FFFFFF';

        }
        function SetOldColor(source) {
            source.style.backgroundColor = _oldColor;
        }
    </script>

    <style type="text/css">
        .style2 {
            width: 300px;
            height: 60px;
        }

        .style3 {
            height: 60px;
        }

        .style4 {
            height: 60px;
        }

        .style5 {
            width: 6%;
        }

        .style6 {
            width: 12%;
        }

        .style7 {
            width: 6%;
        }

        .style8 {
            width: 12%;
        }
        .auto-style1 {
            height: 23px;
        }
        .auto-style2 {
            width: 6%;
            height: 23px;
        }
        .auto-style3 {
            width: 10%;
            height: 23px;
        }
    </style>

</head>
<body>
    <form id="form1" runat="server">
        <div>
            <asp:ScriptManager ID="SCM_Storage" runat="server">
            </asp:ScriptManager>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td style="height: 30px">
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                                <td style="background-image: url(../Images/tab_03.gif); background-repeat: repeat-x; width: 12px;">&nbsp;
                                </td>
                                <td style="background-image: url(../Images/tab_05.gif); background-repeat: repeat-x; height: 30px;">
                                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                        <tr>
                                            <td style="width: 46%; vertical-align: middle;">
                                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                    <tr>
                                                        <td style="width: 5%; vertical-align: middle;">
                                                            <img src="../Images/tb.gif" width="16" height="16" />
                                                        </td>
                                                        <td style="width: 95%;">
                                                            <span>你当前的位置</span>：视图管理--货位状态视图
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                            <td width="54%"></td>
                                        </tr>
                                    </table>
                                </td>
                                <td width="16" style="background-image: url(../Images/tab_07.gif); height: 30px;">&nbsp;
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td>
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                                <td style="background-image: url(../Images/tab_12.gif); width: 8px;">&nbsp;
                                </td>
                                <td>
                              <%--      <asp:UpdatePanel ID="UpdatePanel1" runat="server" >
                                        <ContentTemplate>--%>
                                            <table width="100%" border="0" cellspacing="0" cellpadding="0" style="border: 1px solid #b5d6e6;">
                                                <tr style="height: 12px;">
                                                    <td style="padding: 2px;">
                                                        <table width="100%" cellspacing="0" cellpadding="0" border="0" style="border: 1px solid #b5d6e6;">
                                                            <tr>
                                                                <td style="padding-left: 2px;" class="auto-style1">开始坐标：<asp:TextBox ID="txtSLine" runat="server" Width="30px" Height="14px"></asp:TextBox>--
                                                                <asp:TextBox ID="txtSLcol" runat="server" Width="30px" Height="14px"></asp:TextBox>--
                                                                结束坐标：<asp:TextBox ID="txtELine" runat="server" Width="30px" Height="14px"></asp:TextBox>--
                                                                <asp:TextBox ID="txtELcol" runat="server" Width="30px" Height="14px"></asp:TextBox>
                                                                    <asp:Label ID="lblPos_ID" runat="server"></asp:Label>
                                                                </td>
                                                                <td valign="middle" class="auto-style1">
                                                                    <asp:ImageButton ID="ibtnSelect" runat="server" ImageUrl="~/Images/Selected.gif"
                                                                        Width="65" OnClick="ibtnSelect_Click" />

                                                                    <asp:ImageButton ID="ibtnReset" runat="server" ImageUrl="~/Images/btn/btn_Reset.gif"
                                                                        OnClick="ibtnReset_Click" />
                                                                    <%-- <asp:ImageButton ID="ibtnReset" runat="server" ImageUrl="~/Images/btn/btn_Reset.gif"
                                                                    Width="65" OnClick="ibtnReset_Click" />--%>
                                                                    <%--<asp:ImageButton ID="ibtn_Allout" runat="server" ImageUrl="~/Images/btn/btn_Reset.gif"
                                                                    Width="65" OnClick="ibtnReset_Click" />
                                                                    <asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="~/Images/btn/btn_Reset.gif"
                                                                    Width="65" OnClick="ibtnReset_Click" />--%>
                                                                </td>
                                                                <td align="right" class="auto-style2">库区选择：
                                                                </td>
                                                                <td style="padding-left: 2px;" class="auto-style3">
                                                                    <asp:DropDownList ID="ddlZone" runat="server" OnSelectedIndexChanged="ddlZone_SelectedIndexChanged"
                                                                        AutoPostBack="true">
                                                                    </asp:DropDownList>
                                                                </td>
                                                                <td align="right" class="auto-style2">巷道选择：
                                                                </td>
                                                                <td style="padding-left: 2px;" class="auto-style3">
                                                                    <asp:DropDownList ID="ddlNo_Lane" runat="server" OnSelectedIndexChanged="ddlNo_Lane_SelectedIndexChanged"
                                                                        AutoPostBack="true">
                                                                        <%-- <asp:ListItem Selected="True" Value="1">第1巷道</asp:ListItem>--%>
                                                                    </asp:DropDownList>
                                                               </td>
                                                                 </td>
                                                                <td align="right" class="auto-style2">列：
                                                                </td>
                                                                <td style="padding-left: 2px;" class="auto-style3">
                                                                    <asp:DropDownList ID="ddlNo_Col" runat="server"
                                                                        AutoPostBack="true" OnSelectedIndexChanged="ddlNo_Col_SelectedIndexChanged">
                                                                        <asp:ListItem Value="1">2-60</asp:ListItem>
                                                                        <asp:ListItem Value="2">61-119</asp:ListItem>
                                                                    </asp:DropDownList>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <asp:UpdatePanel ID="UpdateP" runat="server" UpdateMode="Conditional">
                                                            <ContentTemplate>
                                                                <table cellpadding="0" cellspacing="0" width="100%" border="0" id="tab1">
                                                                    <tr>
                                                                        <td style="padding: 2px;" class="style4">
                                                                            <table width="100%" cellspacing="0" cellpadding="0" style="border: 1px solid #b5d6e6;">
                                                                                <tr>
                                                                                    <td class="style3">
                                                                                        <asp:DataList ID="dlistPos" runat="server" RepeatColumns="4" BorderWidth="0"
                                                                                            Height="58px">
                                                                                            <ItemTemplate>
                                                                                                <asp:Button runat="server" ID="btn" Text='<%# Bind("ImgC") %>' Width="90" Height="20"
                                                                                                    CommandArgument='<%# Bind("PosID") %>' CssClass="btn3_mouseout" onmouseover="this.className='btn3_mouseover'"
                                                                                                    onmouseout="this.className='btn3_mouseout'" onmousedown="this.className='btn3_mousedown'"
                                                                                                    onmouseup="this.className='btn3_mouseup'" OnClick="btn_Click" />
                                                                                            </ItemTemplate>
                                                                                        </asp:DataList>
                                                                                    </td>
                                                                                    <td align="center" class="style2">
                                                                                        <asp:Label ID="lblMsg" runat="server" ForeColor="Red"></asp:Label>
                                                                                </tr>
                                                                            </table>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td style="padding: 2px; text-align: center;">
                                                                            <div style="margin-left: 0px; margin-top: 3px; width: 100%; height: 435px; overflow-x: auto; overflow-y: auto;">
                                                                                <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                                                                                     <ContentTemplate>
                                                                                    <asp:GridView ID="GV" runat="server"  Width="100%" BorderWidth="1px" BorderColor="#B5D6E6"
                                                                                        CellPadding="0" CellSpacing="0" OnRowDataBound="GV_RowDataBound"
                                                                                        onselectedindexchanging="GV_SelectedIndexChanging">
                                                                                        <headerstyle horizontalalign="Center" cssclass="gvHeader" font-bold="true" height="30px" />
                                                                                        <rowstyle cssclass="gridviewRow" horizontalalign="Center" height="25px" />
                                                                                    </asp:GridView>
                                                                                         </ContentTemplate>
                                                                                </asp:UpdatePanel>
                                                                            </div>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </ContentTemplate>
                                                        </asp:UpdatePanel>
                                                    </td>
                                                </tr>
                                            </table>
                              <%--          </ContentTemplate>
                                    </asp:UpdatePanel>--%>
                                </td>
                                <td style="background-image: url(../Images/tab_15.gif); width: 8px;">&nbsp;
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td style="background-image: url(../Images/tab_19.gif); height: 35px;">
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                                <td style="width: 12px; height: 35px;">
                                    <img src="../Images/tab_18.gif" width="12" height="35" />
                                </td>
                                <td>&nbsp;
                                </td>
                                <td width="16">
                                    <img src="../Images/tab_20.gif" width="16" height="35" />
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </div>
    </form>
</body>
</html>
